Annotate gsk_rounded_rect_is_circular as pure
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Sep 2021 16:21:34 +0000 (12:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Sep 2021 20:38:08 +0000 (16:38 -0400)
And also mark gsk_rounded_rect_to_string as malloc.

gsk/gskroundedrectprivate.h

index 6dfe4b019ddefb546dd92f3e89a1c673aac28f45..8cd00d39952cb0a748a81a5aa42881c9f5aedc34 100644 (file)
@@ -24,7 +24,7 @@ void                     gsk_rounded_rect_scale_affine          (GskRoundedRect
                                                                  float                 dx,
                                                                  float                 dy);
 
-gboolean                 gsk_rounded_rect_is_circular           (const GskRoundedRect     *self);
+gboolean                 gsk_rounded_rect_is_circular           (const GskRoundedRect     *self) G_GNUC_PURE;
 
 void                     gsk_rounded_rect_path                  (const GskRoundedRect     *self,
                                                                  cairo_t                  *cr);
@@ -33,7 +33,7 @@ void                     gsk_rounded_rect_to_float              (const GskRounde
 
 gboolean                 gsk_rounded_rect_equal                 (gconstpointer             rect1,
                                                                  gconstpointer             rect2) G_GNUC_PURE;
-char *                   gsk_rounded_rect_to_string             (const GskRoundedRect     *self);
+char *                   gsk_rounded_rect_to_string             (const GskRoundedRect     *self) G_GNUC_MALLOC;
 
 
 G_END_DECLS